from django.db import models
from django.contrib import admin

# Create your models here.
class BlogPosts(models.Model):
    title = models.CharField(max_length=150)
    post = models.TextField()
    timestap = models.DateField()
class BlogPostsAdmin(admin.ModelAdmin):
    list_display = ('title','timestap')

admin.site.register(BlogPosts,BlogPostsAdmin)